<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{$title}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/static/admin/css/main.css" rel="stylesheet" type="text/css"/>
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="/static/admin/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
    <script src="/static/admin/js/jquery-1.8.1.min.js"></script>
    <script src="/static/admin/js/bootstrap.min.js"></script>
    <script src="/static/admin/js/highcharts.js"></script>
    <script src="/static/admin/js/exporting.js"></script>
    <script src="/static/admin/js/draw.js"></script>

</head>
<body>

    <!-- 上 -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-right">
                    <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> {$Think.session.info.nickname}
                            <i class="icon-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="javascript:void(0);">修改密码</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" href="{:url('admin/Base/logout')}">安全退出</a></li>
                        </ul>
                    </li>
                </ul>
                <a class="brand" href="index.html"><span class="first">后台管理系统</span></a>
                <ul class="nav">
                    <li class="active"><a href="javascript:void(0);">首页</a></li>
<!--                    <li><a href="javascript:void(0);">系统管理</a></li>-->
<!--                    <li><a href="javascript:void(0);">权限管理</a></li>-->
                </ul>
            </div>
        </div>
    </div>
    <!-- 左 -->
    <div class="sidebar-nav">

        {foreach $top_nav as $k=>$v}
            <a href="#error-menu{$k}" class="nav-header collapsed" data-toggle="collapse">
                <i class="icon-exclamation-sign"></i>
                {$v.auth_name}
            </a>
            <ul id="error-menu{$k}" class="nav nav-list collapse in">
                {foreach $down_nav as $m}
                    {if $m.pid == $v.id}
                        <li>
                            <a href="{:url('admin/'.$m['auth_c'] . '/' . $m['auth_a'])}">
                                {$m.auth_name}
                            </a>
                        </li>
                    {/if}
                {/foreach}
            </ul>
        {/foreach}

    </div>
{__CONTENT__}

</body>
</html>